//品牌服务
app.service("brandService",function($http){

    this.findBrandById = function(id){
        return  $http.get("../brand/findOne.do?id="+id)
    };

    this.addBrand = function(brand){
        return $http.post("../brand/add.do",brand);
    };
    this.updateBrand = function(brand){
        return $http.post("../brand/update.do",brand);
    };
    this.deleteBrand = function (ids) {
        return  $http.get("../brand/delete.do?ids="+ids);
    }

    this.search = function (page,rows,searchBrand) {
        return $http.post("../brand/search.do?page="+page+"&size="+rows,searchBrand);
    }

    this.selectOptionList = function () {
        return $http.post('../brand/selectOptionList.do');
    }

})
